//
//  HMTodayHappyTalkModel.m
//  todayHappyTalk
//
//  Created by qu on 2017/1/4.
//  Copyright © 2017年 Apple. All rights reserved.
//

#import "HMTodayHappyTalkModel.h"
#import "HMNetWorkTool.h"
#import <YYModel.h>

@implementation HMTodayHappyTalkModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}
+ (void)loadHPTalkJsonDataWithfinishedBlock:(void(^)(id responseObject))finishedBlock {
    
    [[HMNetWorkTool sharedTool] requestTodayHappyTalkJsonDataFinished:^(id responseObject) {
    
    NSArray *recommendListArray = [NSArray yy_modelArrayWithClass:[HMTodayHappyTalkModel class] json:responseObject[@"data"][@"list"]];
        
        finishedBlock(recommendListArray);
       
    } Failed:^(NSError *error) {
        
        NSLog(@"%@",error);

    }];
    
}

@end
